from mpython import * 
import time

from DFRobot_DHT20 import *

dht20 = DFRobot_DHT20() #实例化对象并初始化

while True:
  print("DHT20:  T::%f C ,H::%f RH"%(dht20.temperature(),dht20.humidity()))
  print("-----------")
  time.sleep(2)

